//
//  JHSTabBarController.m
//  JHSSweep
//
//  Created by YanYaxing on 2017/3/23.
//  Copyright © 2017年 JHDS. All rights reserved.
//

#import "JHSTabBarController.h"

@interface JHSTabBarController ()

@end

@implementation JHSTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //添加控制器
//    [self addLeftItemBtn];

}

//-(void) addLeftItemBtn: (NSMutableArray<UIViewController *> *) vcArr{
////    vcArr.firstObject
//}


//-(void)setBarItem:(UIViewController *)viewController{
//    
//    UIButton *LeftItem = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 25, 25)];
//    [LeftItem setBackgroundImage:[UIImage imageNamed:@"menusnew"] forState:UIControlStateNormal];
//    
//    
//    viewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:LeftItem];
//    [LeftItem addTarget:self action:@selector(leftItemClick) forControlEvents:UIControlEventTouchUpInside];
//    
//}



#pragma mark - ICSDrawerController方法实现
-(void)leftItemClick{
    [self.drawer open];
}


- (void)drawerControllerWillOpen:(ICSDrawerController *)drawerController
{
    self.view.userInteractionEnabled = NO;
}

- (void)drawerControllerDidClose:(ICSDrawerController *)drawerController
{
    self.view.userInteractionEnabled = YES;
}



@end
